// exercise_entry.cpp

#include "exercise.h"

exerciseScene* createScene1();
exerciseScene* createScene2();
exerciseScene* createScene3();
exerciseScene* createScene4();
exerciseScene* createScene5();
exerciseScene* createScene6();
exerciseScene* createScene7();

int WINAPI _tWinMain(__in HINSTANCE hInstance, 
                   __in_opt HINSTANCE hPrevInstance, 
                   __in_opt LPTSTR lpCmdLine, 
                   __in int nShowCmd)
{
    exerciseWindow wnd;
    if (!wnd.createWindow(0, 0, 1000, 700, NULL, hInstance)) 
        return -1;

//     wnd.addScene(createScene1());
//     wnd.addScene(createScene3());
//     wnd.addScene(createScene4());
//     wnd.addScene(createScene5());
//     wnd.addScene(createScene6());
    wnd.addScene(createScene7());

    wnd.nextScene();

    MSG msg;
    while (GetMessage(&msg, NULL, 0, 0))
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }

    return msg.wParam;
}
